package com.ych.composite;

import java.util.ArrayList;

/**
 * 经理
 * Created by 灰灰 on 2017/7/10.
 */
public class ProjectManager extends Employer {

    public ProjectManager(String  name){
        setName(name);
        employers = new ArrayList();
    }

    @Override
    public void add(Employer employer) {
        employers.add(employer);
    }

    @Override
    public void delete(Employer employer) {
        employers.remove(employer);
    }
}
